<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MusicmanWeb.Default" Title="Musicman Levi9 | Home" %>
<%@ Register TagName="MyLoginControl" TagPrefix="cc" Src="~/Custom/MyLoginControl.ascx" %>
<asp:content id="Content1" contentplaceholderid="Main" runat="server">

	<div class="shim column"></div>
	
	<div class="page" id="home">
		<div id="sidebar">
		<cc:MyLoginControl ID="MyLoginControl1" runat="server"/>

            <hr />

			<h4>Levi9 multimedia collection</h4>
			<p>The latest shared multimedia collection is waiting for you. </p>
            <asp:LoginView ID="LoginView1" runat="server">
            </asp:LoginView>
		</div>
		<div id="content">
			<h3>What is Musicman Levi9?</h3>
			<p>Musicman Levi9 is distributed application which provides easy way to search and download multimedia files over the local network.</p>
			<hr	/>
            <h3>How does it work?</h3>
			<p>The application consists of three parts. MSS (Musicman Search Service), web application and client (desktop) application. The MSS runs on a daily basis and searches for multimedia files over the network. The result is synchronized with the previous search result and it can be viewed or downloaded both using Musicman web or Musicman client application.</p>
			<hr	/>
			<% if (User.Identity.IsAuthenticated)
                { %> 
                <div style="width:800px; height:180px; display:block"> 
            <% } else { %> 
                <div style="width:800px; height:180px; display:none"> 
            <%} %>
			<div style="width:400px; float:left;">
			<h5>Top 5 loggers</h5>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1">
            <Columns>
                <asp:BoundField DataField="FirstName" HeaderText="First name" ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="LastName" HeaderText="Last name" ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="NumLogsWeb" HeaderText="Web logs" ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="NumLogsClient" HeaderText="Client logs" ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="TotalLogs" HeaderText="Total" ItemStyle-HorizontalAlign="Left" />
            </Columns>
            </asp:GridView>
            </div>
			<div style="width:400px; float:right;">
			<h5>Top 5 downloaders</h5>
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource2" >
            <Columns>
                <asp:BoundField DataField="FirstName" HeaderText="First name" ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="LastName" HeaderText="Last name" ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="TotalFiles" HeaderText="Total files" ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="TotalLengthMB" HeaderText="Total traffic" ItemStyle-HorizontalAlign="Right" />
            </Columns>
            </asp:GridView>
            </div>
            </div>
			<% if (User.Identity.IsAuthenticated)
               { %> 
                <hr />
            <% } %> 
            <h4>Fixes from the lates build </h4>
            <p>Issue 51:  	 paging  <a href="http://code.google.com/p/musicmanl9/issues/detail?id=51">details</a></p>
            <p>Issue 52:  	 add 'newest files' functionality  <a href="http://code.google.com/p/musicmanl9/issues/detail?id=52">details</a></p>
            <p>Issue 53:  	 Musicman Client - Feedback tab <a href="http://code.google.com/p/musicmanl9/issues/detail?id=53">details</a></p>
     		<hr	/>
			<h4>Yet to be done (known isssues)</h4>
			<ul	class="link">
		
			<li>The list of all isses <a href="http://code.google.com/p/musicmanl9/issues/list">here</a></li>
			<p>If you want to participate in official musicman issue tracking you can use the wollowing account 
			<li>username : voya.development@gmail.com</li>
			<li>password : developing123</li>
			</p>
			</ul>
		</div>
	</div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetTopLoggers" TypeName="Musicman.Business.DataManager" EnableCaching="false">
        <SelectParameters>
            <asp:SessionParameter Type="int64" SessionField="UserID" Name="personid" />
            <asp:Parameter Name="top" Type="int32" DefaultValue="5" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetTopDownloaders" TypeName="Musicman.Business.DataManager" EnableCaching="false">
        <SelectParameters>
            <asp:SessionParameter Type="int64" SessionField="UserID" Name="personid" />
            <asp:Parameter Name="top" Type="int32" DefaultValue="5" />
        </SelectParameters>
    </asp:ObjectDataSource>

	
</asp:content>
